<?php

echo doctype('html5');

echo '
<html>
<head>';
echo '<title>{site_title}</title>';
$meta = array(
        array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv'),
        array('name' => 'description', 'content' => '{site_description}'),
        array('name' => 'keywords', 'content' => '{site_keywords}')
    );

echo meta($meta); 
echo link_tag('favicon.ico', 'icon', 'image/x-icon');
$css = array(
          'href' => 'css/style.css',
          'rel' => 'stylesheet',
          'type' => 'text/css',
          'media' => 'all'
);

echo link_tag($css);
echo link_tag(array('href' => 'css/jquerylightbox.css','rel' => 'stylesheet','type' => 'text/css','media' => 'screen'));
echo link_tag(array('href' => 'css/jqueryui.css','rel' => 'stylesheet','type' => 'text/css','media' => 'screen'));

echo '
	
	<script type="text/javascript" src="{base_url}js/jquery.min.js">
	</script>
	<script type="text/javascript" src="{base_url}js/jqueryui.min.js">
	</script>
	<script type="text/javascript" src="https://www.google.com/jsapi">
	</script>
	<script type="text/javascript">
		var urlimg = "{base_url}images";
		
		 google.load("webfont", "1");

		  google.setOnLoadCallback(function() {
			WebFont.load({
			  google: {
				families: [ \'Karla\', \'Shanti\',\'Fresca\' ]
			  }});
		  });
		  
		  //(function() {
			//var cx = \'008597577271884212344:cfrdfxtk93i\';
			//var gcse = document.createElement(\'script\'); gcse.type = \'text/javascript\'; gcse.async = true;
			//gcse.src = (document.location.protocol == \'https\' ? \'https:\' : \'http:\') +
				// \'//www.google.com/cse/cse.js?cx=\' + cx;
			//var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(gcse, s);
		  //})();
	</script>
	<script type="text/javascript" src="{base_url}js/jquery.lightbox.min.js">
	</script>

	<script type="text/javascript">
		
		var $jq = jQuery.noConflict();
		var timer = null; 
		 
		function openContent(trigger,divID){ 
			
			$jq("#divTrigger a").each( 
				function(){
					$jq(this).css({"background-color":"#EEE","color":"#000"});			 	
				}
			);
			
			$jq("#divContent div").hide();
			$jq("#"+divID).fadeIn("slow");
			$jq(trigger).css({"background-color":"#B444A3","color":"#FFF"});	 	
			
			if(timer != null) clearTimeout(timer);
			timer = setTimeout( 
			  function(){		
				  
				var nextAnchor = ($jq(trigger).next("a").text() == "") ? $jq("#divTrigger a:first") : $jq(trigger).next("a");
				nextAnchor.click();
			  }, 3000 // 3 detik waktu perpindahan content
			);
		 }
		 
		$jq(document).ready(
			function(){
				
				openContent($jq("#firstSlide"),"div1");
				
				$jq("#beritabaru").load("{base_url}service/feedparse #berita");
					
				
				$jq(function() {
					$jq(".lightbox a").lightBox(); // Select all links in object with gallery ID
					
					// This, or...$jq("a.lightbox").lightBox(); // Select all links with lightbox class
				});
				
				
				if ($jq(window).scrollTop() == 0) {
						$jq("#keAtas").fadeOut(1000);
				}
				$jq(window).scroll(function() {
						if ($jq(this).scrollTop() != 0) {
								$jq("#keAtas").fadeIn();
						} else {
								$jq("#keAtas").fadeOut();
						}
				});
				
				$jq("#keAtas").click(function(event) {
						event.preventDefault();
						$jq("html,body").animate({scrollTop: 0},2000);
				});
				
				var linklapor = $jq("#lapor").val();
				$jq("#lapor").click(function(){
					$jq("#laporkan").load(linklapor+" #content2").dialog({
						height: 140,
						modal: true,
						 close: function(event,ui){
							 $jq("laporkan").dialog("destroy");

								}
					});
				return false	
				});
				
				
			}
		);
		
	
	</script>
	{other_head}
</head>
<body>
';

echo '	
	<div id="atas">
		
		<img src="{base_url}images/logoo.png" class="headlogo" />
		<div class="headtitle">
			<h2>Dadan Setia Network</h2>
			<h4>Apapun Bisnis Anda disini Jaringannya</h4>
		</div>
		
		
	</div>
	
	<div id="atas2">
		<div class="headmenu">
			<a href="{base_url}main">Home</a>
			<a href="{base_url}main/produk.html">Produk</a>
			<a href="{base_url}main/profil.html">Profil</a>
			<a href="{base_url}main/kontak.html">Kontak</a>
			<a href="{base_url}main/partner.html">Partner</a>
			<a href="{base_url}main/login.html">Login</a>
		</div>
	</div>


	<div id="container">
		
		<div id="spaceup"></div>
		
		<div id="tengah">
			<table>
				<tbody>
				<tr>
					<td id="mapdir"><div>{map_dir}</div></td>
				</tr>
				
				<tr>
					<td>
						<div id="leftcontent">
							<div id="isileft">
								
								<div class="leftitem">
									
									<h4>Pencarian</h4><br />
									<form method="get" action="{base_url}main/search.html">
										<input type="text" name="cari" onblur="if(this.value==\'\')this.value=\'Keyword\';" onclick="if(this.value==\'Keyword\')this.value=\'\';" value="Keyword">
										<input type="submit" value="Cari">
									</form>
									
									<div id="pencarian"><gcse:searchbox-only resultsUrl="http://localhost/dannetwork/main/search.html"></gcse:searchbox-only></div>
									
								</div>
								
								<div class="linebrown"></div>
								
								<div class="leftitem">
									
									<h4>Quick Link</h4>
									
									<a href="{base_url}">Home</a><br />
									<a href="http://blog.dadannetwork.com" target="_blank">Blog</a><br />
									<a href="{base_url}main/produk.html">Produk</a><br />
									<a href="{base_url}main/partner.html">Partner</a><br />
									<a href="{base_url}company/loker/">Info Lowongan</a><br />
									
								</div>
								
								<div class="linebrown"></div>
								
								<div class="leftitem">
									
									<h4>Kode QR Halaman Ini</h4><br />
									<img src="http://chart.apis.google.com/chart?chs=150x150&amp;cht=qr&amp;chld=L|0&amp;chl='.urlencode( current_url()).'" alt="QR code" style="width:150px" title="Gambar QR" />
								</div>
								
								<div class="linebrown"></div>
								
								<div class="leftitem">
									<a target="_blank" href="http://fb.me/DadanNetwork.inc"><img alt="Facebook" src="{base_url}images/facebook_icon.gif" /></a>
									<a target="_blank" href="http://twitter.com/dadannetwork"><img alt="Twitter" src="{base_url}images/twitter_icon.gif" /></a>
									<a target="_blank" href="https://plus.google.com/102176436753176433720"><img alt="Gplus" src="{base_url}images/gplus_icon.png" /></a>
									<a target="_blank" href="http://www.linkedin.com/company/dadan-network"><img alt="LinkedIn" src="{base_url}images/linkedin_icon.gif" /></a>
									
								</div>
								
							</div>
							
							
						</div>
						
						<div id="rightcontent">
							<div id="isiright">
								<div id="share">
								
									<div class="g-plusone" data-size="medium"></div>
									<a href="#https://twitter.com/share" class="twitter-share-button" data-via="DadanNetwork" data-lang="id" data-dnt="true">Tweet</a>
									<div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="arial"></div>
									
									
								</div>
									{isi_page}
								<br>
							</div>
						</div>
						
					</td>
					
				</tr>
				
				<tr>
					<td>
						<div id="menubawah">
							<a href="{base_url}main">Home</a> | 
							<a href="{base_url}main/profil.html">Tentang Kami</a> | 
							<a href="{base_url}main/kebijakan.html">Kebijakan dan Privasi</a> | 
							<a href="{base_url}main/masukan.html">Kirim Saran</a> 
						</div>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		
		<div style="display:none"><a id="keAtas" href="#atas">&nbsp</a></div>
		<!-- right coy -->
		
		
	</div>
	
	
	<div id="bawah">
		<div class="linered"></div>
		<p>
			&copy; {tahun_sekarang} <a target="_blank" href="{base_url}">Dadan Setia Network</a><br />
			Developed By : <a target="_blank" href="https://plus.google.com/108266905107680659886?rel=author">Dadan</a> <a href="http://www.facebook.com/dadan.setia">Setia</a>
		</p>
	</div>
	
	<!-- end of Content coy -->
	
	<!-- plusone -->
	<script type="text/javascript">
	  window.___gcfg = {lang: \'id\'};

	  (function() {
		var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
		po.src = \'https://apis.google.com/js/plusone.js\';
		var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
	  })();
	</script>
	
	<!-- twitt -->
	<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
	
	<!-- Fb -->
	<div id="fb-root"></div>
	<script type="text/javascript">(function(d, s, id) {
	  var js, fjs = d.getElementsByTagName(s)[0];
	  if (d.getElementById(id)) return;
	  js = d.createElement(s); js.id = id;
	  js.src = "//connect.facebook.net/id_ID/all.js#xfbml=1&appId=176810195713197";
	  fjs.parentNode.insertBefore(js, fjs);
	}(document, \'script\', \'facebook-jssdk\'));</script>
	';
	
	$this->load->view('main/maintenance',TRUE);
	
echo '	
	<!-- {elapsed_time} {memory_usage} -->
</body>
</html>
';

/* End of file template.php */
/* Location: ./application/views/template.php */
